<?php

import('com.yamvc.event.Event');

class BlogEvent extends Event {
	const GET_NEWEST_EVENT="getNewestEvent";
	const GET_POST="getPostEvent";
	private $_postId;
	private $_page=1;
	public function getPage(){
		return $this->_page;
	}
	public function getPostId(){
		return $this->_postId;
	}
	public function __construct($type,$params=array()){
		parent::__construct($type);
		if (isset($params[0])) {
			$this->_postId=$params[0];
		}
		if (isset($params[1])) {
			$this->_page=$params[1];
		}
	}
}

?>